package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.business.dto.request.create.GoodsSubscribeCreateDto;
import com.molichuxing.services.infrastructure.dto.response.GoodsSubscribeDto;

import java.util.List;
import java.util.Map;

/**
 * 单服务 订阅里程商品表
 * @author xuelin yi
 */
public interface GoodsSubscribeService extends RootService {

    /**
     * 根据商品id集合查询订阅商品信息
     * @param goodsId
     * @return
     */
    public Map<Integer, GoodsSubscribeDto> getGoodsSubscribeById(List<Integer> goodsId);

    /**
     * 根据商品id查询订阅商品信息
     * @param goodsId
     * @return
     */
    public GoodsSubscribeDto getGoodsSubscribeById(Integer goodsId);

    /**
     * 新增订阅商品信息列表
     * @param createDto
     * @return
     */
    public int createSubscribeGoodsProduct(GoodsSubscribeCreateDto createDto);
}
